class Chinesecat extends cat{
    String tail;
    public Chinesecat(String name, String color, int age) {
        super(name, color, age);
    }
    public void eat(){
        System.out.println(this.name+"在吃鱼");
    }
}
class cat extends Animal{
    String host;
    public cat(String name, String color, int age) {
        super(name, color, age);
    }
    public void eat (){
        System.out.println(this.name+"在吃猫粮");
    }
}

public class Animal {
    String name;
    String color;
    int age;

    public Animal(String name, String color, int age) {
        this.name = name;
        this.color = color;
        this.age = age;
    }
    public void eat() {
        System.out.println(this.name+"吃东西");
    }

    public static void main(String[] args) {
        Animal animal1 = new Animal("小黄","黄色",2);
        animal1.eat();
        System.out.println("_________");
        Animal animal2 = new cat("小白","白色",1);
        animal2.eat();
        System.out.println("_________");
        Animal animal3 = new Chinesecat("小橘","橘色",3);
        animal3.eat();
    }
}
